package com.eleadmin.order.service;

import com.eleadmin.common.core.web.JsonResult;
import com.eleadmin.common.system.entity.User;
import com.eleadmin.damon.utils.results.PageResult2;
import com.eleadmin.order.entity.ContainOceanApply;
import com.eleadmin.order.entity.ContainerBill;
import com.eleadmin.order.param.ContainerBillParam;
import org.apache.poi.ss.formula.functions.T;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 拖车运单服务类
 * @author : Doman
 * @date : 2023-01-13 11:14:35
 * @version ：1.0
 */
public interface ContainerBillService /*extends IService<ContainerBill>*/ {

    /**
     * 分页查询
     * @param page
     * @param containerBill
     * @return
     */
    public JsonResult list(PageResult2<T> page, ContainerBillParam containerBill, User loginUser) throws Exception;

    /**
     * 获取list
     * @param containerBill
     * @return
     */
    public JsonResult list(ContainerBillParam containerBill, User loginUser);

    /**
     * 根据Id查询
     * @param id
     * @return
     */
    public JsonResult getById(String id);

    /**
     * 根据Id查询
     * @param
     * @return
     */
    public void carMapper();

    /**
     * 保存
     * @param containerBill
     * @param loginUser
     * @return
     */
    public JsonResult order(ContainerBill containerBill, User loginUser);

    /**
     * 修改
     * @param containerBill
     * @param loginUser
     * @return
     */
    public JsonResult update(ContainerBill containerBill, User loginUser);

    /**
     * 删除
     * @param id
     * @param loginUser
     * @return
     */
    public JsonResult remove(String id, User loginUser);

    /**
     * 修改
     * @param containerBill
     * @param loginUser
     * @return
     */
    public JsonResult updateState(ContainerBill containerBill, User loginUser);

    /**
     * 修改
     * @param containerBill
     * @param loginUser
     * @return
     */
    public JsonResult finishState(ContainerBill containerBill, User loginUser);

    /**
     * 修改
     * @param containerBill
     * @param loginUser
     * @return
     */
    public JsonResult cash(ContainerBill containerBill, User loginUser);

    /**
     * 修改
     * @param containerBill
     * @param loginUser
     * @return
     */
    public JsonResult dropBox(ContainerBill containerBill, User loginUser);

    /**
     * 修改
     * @param containerBill
     * @param loginUser
     * @return
     */
    public JsonResult withholding(ContainerBill containerBill, User loginUser);
    /**
     * 修改
     * @param containerBill
     * @param loginUser
     * @return
     */
    public JsonResult payReceivableVerify(ContainerBill containerBill, User loginUser);
    /**
     * 修改
     * @param containerBill
     * @param loginUser
     * @return
     */
    public JsonResult carTeam(ContainerBill containerBill, User loginUser);


    /**
     * 修改实体类
     * @param containOceanApply
     * @return
     */
    public JsonResult getContainerOceanApplyBy(ContainOceanApply containOceanApply) ;

    /**
     * 修改实体类
     * @param containOceanApply
     * @return
     */
    public JsonResult saveContainerOceanApply(ContainOceanApply containOceanApply) ;

    /**
     * 修改实体类
     * @param containOceanApply
     * @return
     */
    public JsonResult updateContainerOceanApply(ContainOceanApply containOceanApply);


    /**
     * 修改实体类
     * @param containOceanApply
     * @return
     */
    public JsonResult removeContainerOceanApply(ContainOceanApply containOceanApply);


    /**
     * 应收应付分类导出财务报表
     * @param loginUser
     * @return
     */
    public JsonResult exportsFinance(ContainerBill containerBill, User loginUser, HttpServletResponse response, HttpServletRequest request) throws Exception;
    /**
     * 返回每天订单条数
     * @return
     */
    public JsonResult listDayNum(ContainerBill containerBill);
    /**
     * 返回每月订单条数
     * @return
     */
    public JsonResult listMonthNum(ContainerBill containerBill);
    /**
     * 本周本月热门门点
     * @return
     */
    public JsonResult listDockNum(ContainerBill containerBill);
    /**
     *
     * @return
     */
    public JsonResult listCustomerAndDriverNum(ContainerBill containerBill);
    /**
     *
     * @return
     */
    public JsonResult calendarBillNum(ContainerBill containerBill);
}
